package com.sinosoft.cnmuseum.utils;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;



public class UserUtil {

	private String userid;

	private String username;

	private String orgname;

	private String orgid;

	private String position;

	public UserUtil() {
		super();
	}

	public UserUtil(HttpServletRequest request) {
		HttpSession session = request.getSession(false);
		this.userid = (String)session.getAttribute("userid");
		this.username = (String)session.getAttribute("username");
		this.orgname = (String)session.getAttribute("orgname");
		this.orgid = (String)session.getAttribute("orgid");
		this.position = (String)session.getAttribute("position");
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getOrgname() {
		return orgname;
	}

	public void setOrgname(String orgname) {
		this.orgname = orgname;
	}

	public String getOrgid() {
		return orgid;
	}

	public void setOrgid(String orgid) {
		this.orgid = orgid;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

}
